import { http } from '@/utils/http'
import type { CustomerBalanceRecord } from './balance.d'

// 余额查询接口
export const getBalanceInfo = () => {
  return http<number>({
    url: '/customer/balance/record/info',
    method: 'GET',
  })
}

// 分页查询记录
export const getBalanceRecords = (params: { current: number; size: number }) => {
  return http<PageResult<CustomerBalanceRecord>>({
    url: '/customer/balance/record/list',
    method: 'GET',
    query: params,
  })
}
